import React from 'react'
import useMousePosition from './useMousePosition.js'

function CustomHooks() {

    const [x, y] = useMousePosition()
    return <div style={{ height: '500px', backgroundColor: '#ccc' }}>
        <p>鼠标位置 {x} {y}</p>
    </div>
}

export default CustomHooks